package day8;

public class Plane {
    private double weight;
    private double height;
    public Plane(){}
    public Plane(double weight, double height) {
        this.weight = weight;
        this.height = height;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }
    public void showinfo(){
        System.out.println("这架飞机飞行高度"+getHeight()+"米。自重"+getWeight()+"吨。");
    }
    public void start(){
        System.out.println("起飞");
    }
    public void speedup(){
        System.out.println("加速");
    }
    public void landing(){
        System.out.println("降落");
    }

}
